import { createSlice } from '@reduxjs/toolkit'

export const counterSlice = createSlice({
    name: 'counter',
    initialState:{
        // 个人登录信息
        userInfo:{},
    },
    reducers: {
        // 存储登录信息
        logininfor(state,action){
            state.userInfo = action.payload
        }
    },
})

export const { logininfor } = counterSlice.actions

export default counterSlice.reducer